package com.youlai.boot.diet.model.entity;

import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.youlai.boot.common.base.BaseEntity;

/**
 * 饮食计划实体对象
 *
 * @author cuisheng
 * @since 2025-03-30 19:06
 */
@Getter
@Setter
@TableName("diet_plan")
public class DietPlan extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID（关联用户表）
     */
    private Long userId;
    /**
     * 计划日期
     */
    private LocalDate planDate;
    /**
     * 食物ID（关联 food 表）
     */
    private Long foodId;
    /**
     * 食物摄入克数
     */
    private Long quantity;

    private Double energy;
}
